<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>用户管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
     <!–[if IE]>
	<script src="__JS__/html5.js"></script>
    <![endif]–>
	<load href= "__JS__/jshelper.js" />
			<script type="text/JavaScript">
				function infoedit(no){
					window.location.href="__URL__/infoedit/no/"+no;
				}
				
				function infodelete(no){
					if (confirm("你确定要删除吗")==true){
						postwith('__URL__/infodelete',{no:no});
				}
				}
					window.onload=show;
			</script>
</head>
	<body>
	<layout name="Auth:header" />
    		<div class="container-fluid">
     			<div class="row-fluid">
        			<layout name="Auth:leftmenu"/>
                    	<div class="span8">
                          <div class="hero-unit">
                            <h1>用户管理</h1>
                            <p style="font-size:12px">当前位置：
                            <a href='__APP__/index/index' >主页</a>>
                            <a href='__URL__/index'>后台管理</a>>
                            <a href="">用户管理</a>
                            </p>
                          </div>
                  <table class="table table-striped table-bordered table-condensed">
                  <thead>
                	<tr>
                    	<th style="background-color:#09F">
                            添加用户
                        </th>
                	</tr>
               </thead>
                <tbody>
                	<tr>
                    	<td>
                        	<a href="__URL__/infoadd" class="btn btn-info">添加用户</a>
				        <a href="__URL__/infoimport" class="btn btn-primary">批量添加用户</a>
                        </td>
                    </tr>
                </tbody>
				</table>	
                    <table  class="table table-striped table-bordered table-condensed">
                    	<thead style="background-color:#09F">
                        	<tr>
                            	<th>用户查询</th>
                            </tr>
                        </thead>
                        <tbody>
                        	<tr>
                            	<td>
                                <form method="get" action="__URL__/infodetail" class="form-inline" >
                                  <input type="text" class="input"  name="no" placeholder="工号/学号">
                                  <input type="text" class="input"  name="name" placeholder="姓名"> 
                                  <code>所在院系</code><select name="dname" >
                                      <option value =></option>
                                          <volist name='deplist' id='vo'>
                                            <option value =	{$vo.name}>{$vo.name}</option>
                                          </volist>
                                  </select>
                                        <input name="submit" type="submit" value="查询" class="btn btn-success">
                                      </form>
                                   </td>
                              </tr>
                           </tbody>
                         </table>
                         
                           <table class="table table-striped table-bordered table-condensed">
                           		<thead style="background-color:#09F">
                                	<tr>
                                    	<th>
                                        	工/学号
                                        </th>
                                        <th>
                                        	班级号
                                        </th>
                                        <th>
                                        	姓名
                                        </th>
                                        <th>
                                        	权限
                                        </th>
                                        <th>
                                        	院系
                                        </th>
                                        <th>
                                        	操作
                                        </th>
                                    </tr>
                                </thead>
                                <load href"__PUBLIC__/js/list_show.js">
                                <tbody>
                                	<volist name='list' id='vo' >
                                	<tr>
                                    	<td>{$vo.no}</td>
                                        <td>{$vo.cno}</td>
                                        <td>{$vo.name}</td>
                                        <td>{$vo.role}</td>
                                        <td>{$vo.dname}</td>
                                        <td>
                                        	<if condition="$role neq '院系管理员' and $role neq '校级管理员'">
                                            权限不够无法操作
                                            <else/>
                                                <a name="infoedit" onClick="infoedit('{$vo.no}')" href="#" class=" btn btn-primary">编辑</a>
                                                
                                                <a name="delete_info" onClick="infodelete('{$vo.no}')" href="#" class=" btn btn-danger">删除</a>
                                               
                                        </if>
                                        </td>
                                    </tr>
                                    </volist>
                                </tbody>
                           </table>
		      <p class="navbar-text pull-right">{$page}</p>     		
             </div>
		</div>
      </div>
      <script src="__JS__/placeholderIEshow.js"></script>
	</body>
</html>